package com.nineclock.doc.controller;

import com.nineclock.common.entity.Result;
import com.nineclock.doc.service.BanService;
import com.nineclock.system.SmsBanControllerApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/banController")
public class SmsBanController implements SmsBanControllerApi {
    @Autowired
    BanService banService;


    @Override
    @PutMapping("/{fileId}/{status}")
    public Result file(Long fileID, Short status) {
        banService.Ban(fileID,status);
        return Result.success();
    }



}
